<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::cuda::SURF_CUDA Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d1/d1a/namespacecv_1_1cuda.html">cuda</a></li><li class="navelem"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html">SURF_CUDA</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> |
<a href="../../da/d91/classcv_1_1cuda_1_1SURF__CUDA-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::cuda::SURF_CUDA Class Reference<div class="ingroups"><a class="el" href="../../d1/db4/group__xfeatures2d.html">Extra 2D Features Framework</a> » <a class="el" href="../../d2/dca/group__xfeatures2d__nonfree.html">Non-free 2D Features Algorithms</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Class used for extracting Speeded Up Robust Features (SURF) from an image. :  
 <a href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#details">More...</a></p>
<p><code>#include &lt;opencv2/xfeatures2d/cuda.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3b5156553e52661b04bf02fa9628f746"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746">KeypointLayout</a> { <br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746a8b8055f3bc99ae13c5dd3c8cbe2bf0dc">X_ROW</a> = 0, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746a45e535f3a2a0f8a1f490e0c646dc76fb">Y_ROW</a>, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746a06bb440781e5f6b65a3da0cf8611ac01">LAPLACIAN_ROW</a>, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746a55792ce8877b0fcac85cf25f9ff4882d">OCTAVE_ROW</a>, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746afab69397159f91277ff725c76b2cdcba">SIZE_ROW</a>, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746ab6931becd145cd66fbd03c80896cb3de">ANGLE_ROW</a>, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746ae944732678cdb77cbe405caa9979bf17">HESSIAN_ROW</a>, 
<br/>
  <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746a71ea9718fc04d7b7aad87be3ae4832e1">ROWS_COUNT</a>
<br/>
 }</td></tr>
<tr class="separator:a3b5156553e52661b04bf02fa9628f746"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac6522a440dea4b95807d3a3b3417e6a0"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#ac6522a440dea4b95807d3a3b3417e6a0">SURF_CUDA</a> ()</td></tr>
<tr class="memdesc:ac6522a440dea4b95807d3a3b3417e6a0"><td class="mdescLeft"> </td><td class="mdescRight">the default constructor  <a href="#ac6522a440dea4b95807d3a3b3417e6a0">More...</a><br/></td></tr>
<tr class="separator:ac6522a440dea4b95807d3a3b3417e6a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0f7077b5561a105841be6f1a46a29b6d"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a0f7077b5561a105841be6f1a46a29b6d">SURF_CUDA</a> (double _hessianThreshold, int _nOctaves=4, int _nOctaveLayers=2, bool _extended=false, float _keypointsRatio=0.01f, bool _upright=false)</td></tr>
<tr class="memdesc:a0f7077b5561a105841be6f1a46a29b6d"><td class="mdescLeft"> </td><td class="mdescRight">the full constructor taking all the necessary parameters  <a href="#a0f7077b5561a105841be6f1a46a29b6d">More...</a><br/></td></tr>
<tr class="separator:a0f7077b5561a105841be6f1a46a29b6d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2309d119986eadf6ee099ad5bf78ed98"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a2309d119986eadf6ee099ad5bf78ed98">defaultNorm</a> () const</td></tr>
<tr class="memdesc:a2309d119986eadf6ee099ad5bf78ed98"><td class="mdescLeft"> </td><td class="mdescRight">returns the default norm type  <a href="#a2309d119986eadf6ee099ad5bf78ed98">More...</a><br/></td></tr>
<tr class="separator:a2309d119986eadf6ee099ad5bf78ed98"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5a3135dc3e37160ecd54e05487243729"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a5a3135dc3e37160ecd54e05487243729">descriptorSize</a> () const</td></tr>
<tr class="memdesc:a5a3135dc3e37160ecd54e05487243729"><td class="mdescLeft"> </td><td class="mdescRight">returns the descriptor size in float's (64 or 128)  <a href="#a5a3135dc3e37160ecd54e05487243729">More...</a><br/></td></tr>
<tr class="separator:a5a3135dc3e37160ecd54e05487243729"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5985c523f4a675803d57937c2bfa6f56"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a5985c523f4a675803d57937c2bfa6f56">detect</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;keypoints)</td></tr>
<tr class="memdesc:a5985c523f4a675803d57937c2bfa6f56"><td class="mdescLeft"> </td><td class="mdescRight">Finds the keypoints using fast hessian detector used in SURF.  <a href="#a5985c523f4a675803d57937c2bfa6f56">More...</a><br/></td></tr>
<tr class="separator:a5985c523f4a675803d57937c2bfa6f56"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aefb0a6c7eba909fe7551c7f591e98e33"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#aefb0a6c7eba909fe7551c7f591e98e33">detectWithDescriptors</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;keypoints, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;descriptors, bool useProvidedKeypoints=false)</td></tr>
<tr class="memdesc:aefb0a6c7eba909fe7551c7f591e98e33"><td class="mdescLeft"> </td><td class="mdescRight">Finds the keypoints and computes their descriptors using fast hessian detector used in SURF.  <a href="#aefb0a6c7eba909fe7551c7f591e98e33">More...</a><br/></td></tr>
<tr class="separator:aefb0a6c7eba909fe7551c7f591e98e33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa810356f1c5eb81474735ec57a5bdea4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#aa810356f1c5eb81474735ec57a5bdea4">downloadDescriptors</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;descriptorsGPU, std::vector&lt; float &gt; &amp;descriptors)</td></tr>
<tr class="memdesc:aa810356f1c5eb81474735ec57a5bdea4"><td class="mdescLeft"> </td><td class="mdescRight">download descriptors from device to host memory  <a href="#aa810356f1c5eb81474735ec57a5bdea4">More...</a><br/></td></tr>
<tr class="separator:aa810356f1c5eb81474735ec57a5bdea4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2d01e23e3092305d4a57fdeccca8c961"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a2d01e23e3092305d4a57fdeccca8c961">downloadKeypoints</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;keypointsGPU, std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp;keypoints)</td></tr>
<tr class="memdesc:a2d01e23e3092305d4a57fdeccca8c961"><td class="mdescLeft"> </td><td class="mdescRight">download keypoints from device to host memory  <a href="#a2d01e23e3092305d4a57fdeccca8c961">More...</a><br/></td></tr>
<tr class="separator:a2d01e23e3092305d4a57fdeccca8c961"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a67ee54d1221b03d9866393effaeeb8dd"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a67ee54d1221b03d9866393effaeeb8dd">operator()</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;keypoints)</td></tr>
<tr class="separator:a67ee54d1221b03d9866393effaeeb8dd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa0ed78380fe2142a729e424aa195263c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#aa0ed78380fe2142a729e424aa195263c">operator()</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;keypoints, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;descriptors, bool useProvidedKeypoints=false)</td></tr>
<tr class="separator:aa0ed78380fe2142a729e424aa195263c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9bb91e3bffd09e0e65c91c45da669304"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a9bb91e3bffd09e0e65c91c45da669304">operator()</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp;keypoints)</td></tr>
<tr class="separator:a9bb91e3bffd09e0e65c91c45da669304"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec817660a3ecbb64f0afa54354a8af5c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#aec817660a3ecbb64f0afa54354a8af5c">operator()</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp;keypoints, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;descriptors, bool useProvidedKeypoints=false)</td></tr>
<tr class="separator:aec817660a3ecbb64f0afa54354a8af5c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad254c526ba8d61e66a40ebabf5a6c847"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#ad254c526ba8d61e66a40ebabf5a6c847">operator()</a> (const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;img, const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;mask, std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp;keypoints, std::vector&lt; float &gt; &amp;descriptors, bool useProvidedKeypoints=false)</td></tr>
<tr class="separator:ad254c526ba8d61e66a40ebabf5a6c847"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a500401e692acadfd0952362d9519f41f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a500401e692acadfd0952362d9519f41f">releaseMemory</a> ()</td></tr>
<tr class="separator:a500401e692acadfd0952362d9519f41f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae1720f109f03b2530f3115deec53e3be"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#ae1720f109f03b2530f3115deec53e3be">uploadKeypoints</a> (const std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp;keypoints, <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp;keypointsGPU)</td></tr>
<tr class="memdesc:ae1720f109f03b2530f3115deec53e3be"><td class="mdescLeft"> </td><td class="mdescRight">upload host keypoints to device memory  <a href="#ae1720f109f03b2530f3115deec53e3be">More...</a><br/></td></tr>
<tr class="separator:ae1720f109f03b2530f3115deec53e3be"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a23867f0ac180089fd9d0d7b8429b109e"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html">SURF_CUDA</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a23867f0ac180089fd9d0d7b8429b109e">create</a> (double _hessianThreshold, int _nOctaves=4, int _nOctaveLayers=2, bool _extended=false, float _keypointsRatio=0.01f, bool _upright=false)</td></tr>
<tr class="separator:a23867f0ac180089fd9d0d7b8429b109e"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad810e03e0ed2e12d738648eaca2540c1"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#ad810e03e0ed2e12d738648eaca2540c1">det</a></td></tr>
<tr class="separator:ad810e03e0ed2e12d738648eaca2540c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a634659515f412d8659bd449f8cdb6abf"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a634659515f412d8659bd449f8cdb6abf">extended</a></td></tr>
<tr class="separator:a634659515f412d8659bd449f8cdb6abf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aba1f69992b23136f5b02de498db89804"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#aba1f69992b23136f5b02de498db89804">hessianThreshold</a></td></tr>
<tr class="separator:aba1f69992b23136f5b02de498db89804"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1fba71a8e1101e722fc517f30a272a6b"><td align="right" class="memItemLeft" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a1fba71a8e1101e722fc517f30a272a6b">keypointsRatio</a></td></tr>
<tr class="memdesc:a1fba71a8e1101e722fc517f30a272a6b"><td class="mdescLeft"> </td><td class="mdescRight">max keypoints = min(keypointsRatio * <a class="el" href="../../df/d5b/namespacecv_1_1gapi_1_1streaming.html#a0a915e69f4cc8284293e40fc9ffbf157" title="Gets dimensions from Mat. ">img.size()</a>.area(), 65535)  <a href="#a1fba71a8e1101e722fc517f30a272a6b">More...</a><br/></td></tr>
<tr class="separator:a1fba71a8e1101e722fc517f30a272a6b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17dea5e87ecb4cd70334382de54ebc01"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a17dea5e87ecb4cd70334382de54ebc01">mask1</a></td></tr>
<tr class="separator:a17dea5e87ecb4cd70334382de54ebc01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a45223b25f9b1dbf54b2afb84db4970e1"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a45223b25f9b1dbf54b2afb84db4970e1">maskSum</a></td></tr>
<tr class="separator:a45223b25f9b1dbf54b2afb84db4970e1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a125bb5a98ca8d63f5d0ed5fac895b8af"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a125bb5a98ca8d63f5d0ed5fac895b8af">maxPosBuffer</a></td></tr>
<tr class="separator:a125bb5a98ca8d63f5d0ed5fac895b8af"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c84e60f9b1aba425aab45e9cc6f1431"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a4c84e60f9b1aba425aab45e9cc6f1431">nOctaveLayers</a></td></tr>
<tr class="separator:a4c84e60f9b1aba425aab45e9cc6f1431"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a198872f947db4614cc7a377d61a15272"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a198872f947db4614cc7a377d61a15272">nOctaves</a></td></tr>
<tr class="separator:a198872f947db4614cc7a377d61a15272"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab0c4f9ec72059246c2abfc72c47d5ef0"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#ab0c4f9ec72059246c2abfc72c47d5ef0">sum</a></td></tr>
<tr class="separator:ab0c4f9ec72059246c2abfc72c47d5ef0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeae65b9413c8b8b7fd6829ee55558d92"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#aeae65b9413c8b8b7fd6829ee55558d92">trace</a></td></tr>
<tr class="separator:aeae65b9413c8b8b7fd6829ee55558d92"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af5960a7f63ce19368df3e115bb850926"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#af5960a7f63ce19368df3e115bb850926">upright</a></td></tr>
<tr class="separator:af5960a7f63ce19368df3e115bb850926"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class used for extracting Speeded Up Robust Features (SURF) from an image. : </p>
<p>The class <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html" title="Class used for extracting Speeded Up Robust Features (SURF) from an image. : ">SURF_CUDA</a> implements Speeded Up Robust Features descriptor. There is a fast multi-scale Hessian keypoint detector that can be used to find the keypoints (which is the default option). But the descriptors can also be computed for the user-specified keypoints. Only 8-bit grayscale images are supported.</p>
<p>The class <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html" title="Class used for extracting Speeded Up Robust Features (SURF) from an image. : ">SURF_CUDA</a> can store results in the GPU and CPU memory. It provides functions to convert results between CPU and GPU version ( uploadKeypoints, downloadKeypoints, downloadDescriptors ). The format of CPU results is the same as SURF results. GPU results are stored in <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html" title="Base storage class for GPU memory with reference counting. ">GpuMat</a>. The keypoints matrix is \(\texttt{nFeatures} \times 7\) matrix with the CV_32FC1 type.</p>
<ul>
<li>keypoints.ptr&lt;float&gt;(X_ROW)[i] contains x coordinate of the i-th feature.</li>
<li>keypoints.ptr&lt;float&gt;(Y_ROW)[i] contains y coordinate of the i-th feature.</li>
<li>keypoints.ptr&lt;float&gt;(LAPLACIAN_ROW)[i] contains the laplacian sign of the i-th feature.</li>
<li>keypoints.ptr&lt;float&gt;(OCTAVE_ROW)[i] contains the octave of the i-th feature.</li>
<li>keypoints.ptr&lt;float&gt;(SIZE_ROW)[i] contains the size of the i-th feature.</li>
<li>keypoints.ptr&lt;float&gt;(ANGLE_ROW)[i] contain orientation of the i-th feature.</li>
<li>keypoints.ptr&lt;float&gt;(HESSIAN_ROW)[i] contains the response of the i-th feature.</li>
</ul>
<p>The descriptors matrix is \(\texttt{nFeatures} \times \texttt{descriptorSize}\) matrix with the CV_32FC1 type.</p>
<p>The class <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html" title="Class used for extracting Speeded Up Robust Features (SURF) from an image. : ">SURF_CUDA</a> uses some buffers and provides access to it. All buffers can be safely released between function calls.</p>
<dl class="section see"><dt>See also</dt><dd>SURF</dd></dl>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>An example for using the SURF keypoint matcher on GPU can be found at opencv_source_code/samples/gpu/surf_keypoint_matcher.cpp </li>
</ul>
</dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a3b5156553e52661b04bf02fa9628f746"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b5156553e52661b04bf02fa9628f746">◆ </a></span>KeypointLayout</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html#a3b5156553e52661b04bf02fa9628f746">cv::cuda::SURF_CUDA::KeypointLayout</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746a8b8055f3bc99ae13c5dd3c8cbe2bf0dc"></a>X_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746a45e535f3a2a0f8a1f490e0c646dc76fb"></a>Y_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746a06bb440781e5f6b65a3da0cf8611ac01"></a>LAPLACIAN_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746a55792ce8877b0fcac85cf25f9ff4882d"></a>OCTAVE_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746afab69397159f91277ff725c76b2cdcba"></a>SIZE_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746ab6931becd145cd66fbd03c80896cb3de"></a>ANGLE_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746ae944732678cdb77cbe405caa9979bf17"></a>HESSIAN_ROW </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a3b5156553e52661b04bf02fa9628f746a71ea9718fc04d7b7aad87be3ae4832e1"></a>ROWS_COUNT </td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac6522a440dea4b95807d3a3b3417e6a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6522a440dea4b95807d3a3b3417e6a0">◆ </a></span>SURF_CUDA() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::cuda::SURF_CUDA::SURF_CUDA </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the default constructor </p>
</div>
</div>
<a id="a0f7077b5561a105841be6f1a46a29b6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f7077b5561a105841be6f1a46a29b6d">◆ </a></span>SURF_CUDA() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::cuda::SURF_CUDA::SURF_CUDA </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>_hessianThreshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_nOctaves</em> = <code>4</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_nOctaveLayers</em> = <code>2</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>_extended</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>_keypointsRatio</em> = <code>0.01f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>_upright</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>the full constructor taking all the necessary parameters </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a23867f0ac180089fd9d0d7b8429b109e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23867f0ac180089fd9d0d7b8429b109e">◆ </a></span>create()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/d06/classcv_1_1cuda_1_1SURF__CUDA.html">SURF_CUDA</a>&gt; cv::cuda::SURF_CUDA::create </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>_hessianThreshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_nOctaves</em> = <code>4</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_nOctaveLayers</em> = <code>2</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>_extended</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>_keypointsRatio</em> = <code>0.01f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>_upright</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.SURF_CUDA_create(</td><td class="paramname">_hessianThreshold[, _nOctaves[, _nOctaveLayers[, _extended[, _keypointsRatio[, _upright]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_hessianThreshold</td><td>Threshold for hessian keypoint detector used in SURF. </td></tr>
    <tr><td class="paramname">_nOctaves</td><td>Number of pyramid octaves the keypoint detector will use. </td></tr>
    <tr><td class="paramname">_nOctaveLayers</td><td>Number of octave layers within each octave. </td></tr>
    <tr><td class="paramname">_extended</td><td>Extended descriptor flag (true - use extended 128-element descriptors; false - use 64-element descriptors). </td></tr>
    <tr><td class="paramname">_keypointsRatio</td><td></td></tr>
    <tr><td class="paramname">_upright</td><td>Up-right or rotated features flag (true - do not compute orientation of features; false - compute orientation). </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a2309d119986eadf6ee099ad5bf78ed98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2309d119986eadf6ee099ad5bf78ed98">◆ </a></span>defaultNorm()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::cuda::SURF_CUDA::defaultNorm </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda_SURF_CUDA.defaultNorm(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>returns the default norm type </p>
</div>
</div>
<a id="a5a3135dc3e37160ecd54e05487243729"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a3135dc3e37160ecd54e05487243729">◆ </a></span>descriptorSize()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::cuda::SURF_CUDA::descriptorSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda_SURF_CUDA.descriptorSize(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>returns the descriptor size in float's (64 or 128) </p>
</div>
</div>
<a id="a5985c523f4a675803d57937c2bfa6f56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5985c523f4a675803d57937c2bfa6f56">◆ </a></span>detect()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::detect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>keypoints</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>keypoints</td><td>=</td><td>cv.cuda_SURF_CUDA.detect(</td><td class="paramname">img, mask[, keypoints]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Finds the keypoints using fast hessian detector used in SURF. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Source image, currently supports only CV_8UC1 images. </td></tr>
    <tr><td class="paramname">mask</td><td>A mask image same size as src and of type CV_8UC1. </td></tr>
    <tr><td class="paramname">keypoints</td><td>Detected keypoints. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aefb0a6c7eba909fe7551c7f591e98e33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefb0a6c7eba909fe7551c7f591e98e33">◆ </a></span>detectWithDescriptors()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::detectWithDescriptors </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>keypoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>descriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>useProvidedKeypoints</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>keypoints, descriptors</td><td>=</td><td>cv.cuda_SURF_CUDA.detectWithDescriptors(</td><td class="paramname">img, mask[, keypoints[, descriptors[, useProvidedKeypoints]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Finds the keypoints and computes their descriptors using fast hessian detector used in SURF. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Source image, currently supports only CV_8UC1 images. </td></tr>
    <tr><td class="paramname">mask</td><td>A mask image same size as src and of type CV_8UC1. </td></tr>
    <tr><td class="paramname">keypoints</td><td>Detected keypoints. </td></tr>
    <tr><td class="paramname">descriptors</td><td>Keypoint descriptors. </td></tr>
    <tr><td class="paramname">useProvidedKeypoints</td><td>Compute descriptors for the user-provided keypoints and recompute keypoints direction. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aa810356f1c5eb81474735ec57a5bdea4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa810356f1c5eb81474735ec57a5bdea4">◆ </a></span>downloadDescriptors()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::downloadDescriptors </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>descriptorsGPU</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp; </td>
          <td class="paramname"><em>descriptors</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>download descriptors from device to host memory </p>
</div>
</div>
<a id="a2d01e23e3092305d4a57fdeccca8c961"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d01e23e3092305d4a57fdeccca8c961">◆ </a></span>downloadKeypoints()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::downloadKeypoints </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>keypointsGPU</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp; </td>
          <td class="paramname"><em>keypoints</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>keypoints</td><td>=</td><td>cv.cuda_SURF_CUDA.downloadKeypoints(</td><td class="paramname">keypointsGPU</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>download keypoints from device to host memory </p>
</div>
</div>
<a id="a67ee54d1221b03d9866393effaeeb8dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67ee54d1221b03d9866393effaeeb8dd">◆ </a></span>operator()() <span class="overload">[1/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>keypoints</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>finds the keypoints using fast hessian detector used in SURF supports CV_8UC1 images keypoints will have nFeature cols and 6 rows keypoints.ptr&lt;float&gt;(X_ROW)[i] will contain x coordinate of i'th feature keypoints.ptr&lt;float&gt;(Y_ROW)[i] will contain y coordinate of i'th feature keypoints.ptr&lt;float&gt;(LAPLACIAN_ROW)[i] will contain laplacian sign of i'th feature keypoints.ptr&lt;float&gt;(OCTAVE_ROW)[i] will contain octave of i'th feature keypoints.ptr&lt;float&gt;(SIZE_ROW)[i] will contain size of i'th feature keypoints.ptr&lt;float&gt;(ANGLE_ROW)[i] will contain orientation of i'th feature keypoints.ptr&lt;float&gt;(HESSIAN_ROW)[i] will contain response of i'th feature </p>
</div>
</div>
<a id="aa0ed78380fe2142a729e424aa195263c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0ed78380fe2142a729e424aa195263c">◆ </a></span>operator()() <span class="overload">[2/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>keypoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>descriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>useProvidedKeypoints</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>finds the keypoints and computes their descriptors. Optionally it can compute descriptors for the user-provided keypoints and recompute keypoints direction </p>
</div>
</div>
<a id="a9bb91e3bffd09e0e65c91c45da669304"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bb91e3bffd09e0e65c91c45da669304">◆ </a></span>operator()() <span class="overload">[3/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp; </td>
          <td class="paramname"><em>keypoints</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="aec817660a3ecbb64f0afa54354a8af5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec817660a3ecbb64f0afa54354a8af5c">◆ </a></span>operator()() <span class="overload">[4/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp; </td>
          <td class="paramname"><em>keypoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>descriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>useProvidedKeypoints</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="ad254c526ba8d61e66a40ebabf5a6c847"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad254c526ba8d61e66a40ebabf5a6c847">◆ </a></span>operator()() <span class="overload">[5/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp; </td>
          <td class="paramname"><em>keypoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp; </td>
          <td class="paramname"><em>descriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>useProvidedKeypoints</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a500401e692acadfd0952362d9519f41f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a500401e692acadfd0952362d9519f41f">◆ </a></span>releaseMemory()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::releaseMemory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="ae1720f109f03b2530f3115deec53e3be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1720f109f03b2530f3115deec53e3be">◆ </a></span>uploadKeypoints()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::SURF_CUDA::uploadKeypoints </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d2/d29/classcv_1_1KeyPoint.html">KeyPoint</a> &gt; &amp; </td>
          <td class="paramname"><em>keypoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> &amp; </td>
          <td class="paramname"><em>keypointsGPU</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>upload host keypoints to device memory </p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ad810e03e0ed2e12d738648eaca2540c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad810e03e0ed2e12d738648eaca2540c1">◆ </a></span>det</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> cv::cuda::SURF_CUDA::det</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a634659515f412d8659bd449f8cdb6abf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a634659515f412d8659bd449f8cdb6abf">◆ </a></span>extended</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::cuda::SURF_CUDA::extended</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="aba1f69992b23136f5b02de498db89804"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba1f69992b23136f5b02de498db89804">◆ </a></span>hessianThreshold</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::cuda::SURF_CUDA::hessianThreshold</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a1fba71a8e1101e722fc517f30a272a6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fba71a8e1101e722fc517f30a272a6b">◆ </a></span>keypointsRatio</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float cv::cuda::SURF_CUDA::keypointsRatio</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>max keypoints = min(keypointsRatio * <a class="el" href="../../df/d5b/namespacecv_1_1gapi_1_1streaming.html#a0a915e69f4cc8284293e40fc9ffbf157" title="Gets dimensions from Mat. ">img.size()</a>.area(), 65535) </p>
</div>
</div>
<a id="a17dea5e87ecb4cd70334382de54ebc01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17dea5e87ecb4cd70334382de54ebc01">◆ </a></span>mask1</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> cv::cuda::SURF_CUDA::mask1</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a45223b25f9b1dbf54b2afb84db4970e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45223b25f9b1dbf54b2afb84db4970e1">◆ </a></span>maskSum</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> cv::cuda::SURF_CUDA::maskSum</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a125bb5a98ca8d63f5d0ed5fac895b8af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a125bb5a98ca8d63f5d0ed5fac895b8af">◆ </a></span>maxPosBuffer</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> cv::cuda::SURF_CUDA::maxPosBuffer</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a4c84e60f9b1aba425aab45e9cc6f1431"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c84e60f9b1aba425aab45e9cc6f1431">◆ </a></span>nOctaveLayers</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::cuda::SURF_CUDA::nOctaveLayers</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="a198872f947db4614cc7a377d61a15272"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a198872f947db4614cc7a377d61a15272">◆ </a></span>nOctaves</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::cuda::SURF_CUDA::nOctaves</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="ab0c4f9ec72059246c2abfc72c47d5ef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0c4f9ec72059246c2abfc72c47d5ef0">◆ </a></span>sum</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> cv::cuda::SURF_CUDA::sum</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="aeae65b9413c8b8b7fd6829ee55558d92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeae65b9413c8b8b7fd6829ee55558d92">◆ </a></span>trace</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html">GpuMat</a> cv::cuda::SURF_CUDA::trace</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="af5960a7f63ce19368df3e115bb850926"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5960a7f63ce19368df3e115bb850926">◆ </a></span>upright</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::cuda::SURF_CUDA::upright</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/xfeatures2d/<a class="el" href="../../da/d44/contrib_2modules_2xfeatures2d_2include_2opencv2_2xfeatures2d_2cuda_8hpp.html">cuda.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:44 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
